<script src="lib/vue.js"></script>
<div id="app">
    <div>
        <button @click='update'>update</button>
        <span id='content'>{{message}}</span>
    </div>
</div>
<script>
    new Vue({
        el: '#app',
        data: {
            message: 'hello world'
        },
        methods: {
            update() {
                this.message = 'Hello World!!!'
                console.log(document.getElementById('content').textContent);
                this.$nextTick(() => {
                    console.log(document.getElementById('content').textContent);
                })
            }
        }
    })
</script>
